package com.jk.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jk.pojo.RecordBean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RecordDao extends BaseMapper<RecordBean> {

    /**
     * @Author: binzi
     * @Description:查询当前时间一周的数据
     * @Date: 2022/10/17 15:15
     * @Return: java.util.List<com.jk.pojo.RecordBean>
     **/
    List<Integer> findDateByWeek();

    /**
     * @Author: binzi
     * @Description:已完成服务数量
     * @Date: 2022/10/18 10:54
     * @Return: java.lang.Integer
     **/
    Integer findRecordByStateCount();

    /**
    * @Author: binzi
    * @Description:根据pid回显
    * @Date: 2022/10/19 9:33
    * @Return: com.jk.pojo.RecordBean
    **/
    List<RecordBean> findRecordByPid(Integer pid);

    /**
     * @Author: binzi
     * @Description:根据id更改状态
     * @Date: 2022/10/23 19:34
     * @Return: void
     **/
    void updateStateById(Integer record_id);

    /**
     * @Author: binzi
     * @Description:根据id更改状态4
     * @Date: 2022/10/23 19:34
     * @Return: void
     **/
    void updateStateById2(Integer record_id);

    /**
     * @Author: binzi
     * @Description:根据id更改状态 4
     * @Date: 2022/10/23 19:34
     * @Return: void
     **/
    void updateStateById3(Integer record_id);
}
